body{
    margin: 0;
}
.nav{
    width: 100%;
    height: 80px;
    border-bottom:  1px solid gray;/*定位到顶部*/
    position: fixed;/*固定图像*/
    top: 0;
    box-shadow: 1px 1px  4px #333;/*添加阴影*/
}
nav{
    width: 990px;
    height: 80px;
    margin: 0 auto;
    display:flex;
    justify-content: space-between;
    align-items: center;
}
nav div{
    font-size: 30px;
    margin: 15px 550px 3px 2px;
    color: #a0a0a0;
}

nav span{
    align-self: flex-end;
    margin-bottom: 15px;
    color:#333;
}
nav a{
    display: inline-block;
    background-image: url(./京东图标logo.png);
    width: 150px;
    height: 50px;
    background-repeat: round;
}
.adver{
    margin-top: 81px;
    width: 100%;
    height: 30px;
    line-height: 30px;
    text-align: center;
    color: gray;
    font-size: 14px;
    background: #fff8f0;
}
.login-bg{
    width: 100%;
    height: 475px;
    background: #e93854;
}
.login-img{
    width: 880px;
    height: 475px;
    margin: 0 auto;
    background-image: url(./京东背景logo.jpg);
    background-repeat: round;
}
.login{
    width: 330px;
    height: 400px;
    margin-top: 20px;
    margin-bottom: 65px;
    background: #fff;
    text-align:center;
    float: right;
}
.login div:nth-child(1){
    height: 40px;
    background-color: #fff8f0;
    line-height: 40px;
    text-align: center;
    font-size: 14px;
    color: grey;
}
.login div:nth-child(2){
    height: 60px;
    display: flex;
    color: gray;
    font-size: 20px;
    font-weight: bold;
    align-items: center;

}
.login div:nth-child(2)span{
    flex-grow: 1;
}
span.line{
    flex-grow: 0 !important;
    display: inline-block;
    width: 0;
    height: 30px;
    border-left: 1px solid #fff8f0;
}
span.lin{
    color: #e93854;
    font-weight: 1000;
}
.login .input{
    height: 40px;
    margin-bottom: 10px;
    margin-top: 40px;
}
.login .input label{
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #f0f0f0;
    border-radius: 0;
    margin: 0px -4px -15px 10px;
}
.login .input input{
    height: 40px;
    border: 2px solid #a0a0a0;
    flex-grow: 1;
    border-radius: 0;
    outline: none;
    margin: 10px 10px 30px 0px;
}
[for="username"]{
    background-image: url(./lingjian.png);
}
[for="pwd"]{
    background-image:url(./lingjian.png);
    background-position:-46px 0;

}
.login div:nth-child(5){
   font-size: 5px;
   margin: 30px -120px 20px 40px;
}
.login div:nth-child(6){
   width: 300px;
   height: 30px;
   background-color: crimson;
   color: #fff;
   font-size: 20px;
   margin: 0 auto;
}
.login .reg{
    width: 280px;
    height: 51px;
    margin: 0 auto;
    justify-content: flex-end;
    display: flex;
    align-items: center;
    color: #e93854;
    font-size: 14px;
}
.reg span{
    width: 20px;
    height: 20px;
    background-image:url(./小图标.png);
    background-position:-100px -72px;
    margin-right: 6px;
}